package com.boang.entity;

/*
  @author: 13813
  @date: 2024/11/15 15:33
*/
public class Phone {
    public String name;
    public long num;
    public String msg;
    public Phone() {
    }
//    默认构造方法
    //默认的构造方法就没有了
    public Phone(String name, long num) {
        this.name = name;
        this.num = num;
    }
    public Phone(String name, long num, String msg) {
        this.name = name;
        this.num = num;
        this.msg = msg;
    }
    public void sendMsg() {
        System.out.println(this.num + ":" + msg);
    }
}
